package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 秒杀对象 seckill
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
public class Seckill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long sid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 优惠卷id */
    @Excel(name = "优惠卷id")
    private Long pid;

    /** 优惠卷名称 */
    @Excel(name = "优惠卷名称")
    private String pname;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 关联活动的id */
    @Excel(name = "关联活动的id")
    private Long eid;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 是否使用 1使用2未使用 */
    @Excel(name = "是否使用 1使用2未使用")
    private Long whereUse;

    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setPname(String pname) 
    {
        this.pname = pname;
    }

    public String getPname() 
    {
        return pname;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setEid(Long eid) 
    {
        this.eid = eid;
    }

    public Long getEid() 
    {
        return eid;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setWhereUse(Long whereUse) 
    {
        this.whereUse = whereUse;
    }

    public Long getWhereUse() 
    {
        return whereUse;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sid", getSid())
            .append("uid", getUid())
            .append("pid", getPid())
            .append("pname", getPname())
            .append("type", getType())
            .append("eid", getEid())
            .append("createTime", getCreateTime())
            .append("useTime", getUseTime())
            .append("whereUse", getWhereUse())
            .toString();
    }
}
